//
//  UIControl+RL.swift
//  RaveLand
//
//  Created by zhuxuhong on 2021/4/22.
//  Copyright © 2021 CSLY. All rights reserved.
//

import UIKit

extension UIControl {
    public func bw_removeAllActions(forTarget target: Any?, event: Event) {
        let acs = actions(forTarget: target, forControlEvent: event) ?? []
        acs.forEach{
            removeTarget(target, action: NSSelectorFromString($0), for: event)
        }
    }
}
